package com.example.demo.config;

import org.springframework.scheduling.annotation.Async;

/**
 * 异步执行
 */
@Async
public class ThreadTest {
    public static String getName(){
        return Thread.currentThread().getName();
    }
    public void haha(){

    }

    public static void main(String[] args) {
        getName();
    }

}
